//
//  UUFleetManager.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 21/01/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UUFoundation/DKBaseManager.h>
#import "UUFleetModel.h"

#define GetFleetManager()       ([UUFleetManager sharedInstance])

@protocol UUFleetManagerObserver

- (void)fleetManagerDidUpdateFleets;

@optional

- (void)fleetManagerDidDeleteFleets:(NSArray<NSNumber *> *)fleets;

@end

@interface UUFleetManager : DKBaseManager

// 增量更新
- (void)asyncUpdateFleets;

- (NSArray<NSNumber *> *)fetchFleets;

- (UUFleetModel *)fetchFleetWithFleetId:(id)fleetId;

- (void)asyncDeleteFleetWithFleetId:(NSNumber *)fleetId completeBlock:(void (^)(NSError *error))completeBlock;

- (void)addFleetWithDistrictIds:(NSString *)districtIds
                           name:(NSString *)name
                        contact:(NSString *)contact
                  contactMobile:(NSString *)contactMobile
                  completeBlock:(void (^)(NSError *error))completeBlock;

- (void)updateFleetWithFleetId:(id)fleetId
                   districtIds:(NSString *)districtIds
                          name:(NSString *)name
                       contact:(NSString *)contact
                 contactMobile:(NSString *)contactMobile
                 completeBlock:(void (^)(NSError *error))completeBlock;

@end
